<?
/* interface for forum primat.cz 
 * this file content all interface function for communication forum vs next part of pages
 * for using this function it's enough to include this file and everything should work
*/

/* action connected with statistics - including adding bananas zacinaji prefixem StatsAction...... */

// Tato funkce je zavolana pokud je pridan novy post do prispevku
function SetStatsActionPostReply($user_id) {
	LogAction("pridani prispevku uzivatelem $user_id");
}

function LogAction($message) {
//zaloguj message - jen testovaci soubor aby bylo videt, ze volani funkci funguje
	$myFile = "d:/primatlog.txt";
	$fh = fopen($myFile, 'w') or die("can't open file");	
	fwrite($fh, date(DATE_ATOM)." ".$message);	
	fclose($fh);
}

?>